import request from '@/utils/request'

export function addDuty(data) {
  return request({
    url: '/duty',
    method: 'post',
    data
  })
}

export function editDuty(data) {
  return request({
    url: '/duty',
    method: 'put',
    data
  })
}

export function deleteDuty(duty_id) {
  return request({
    url: `/duty/${duty_id}`,
    method: 'DELETE'
  })
}

export function getDuty() {
  return request({
    url: '/duty',
    method: 'get'
  })
}

